package com.admin.socketmultiplayer.adapter

import android.content.Context
import cn.bmob.v3.BmobUser
import com.admin.kotlintest.base.AdapterHolder
import com.admin.kotlintest.base.CurrencyAdapter
import com.admin.socketmultiplayer.R
import com.socks.library.KLog
import kotlinx.android.synthetic.main.layout_arena_user_item.view.*

/**
 * Created by 吴昶 on 2018/4/25.
 */
class ArenaUserAdapter(context: Context,layout:Int,data:MutableList<BmobUser>?):CurrencyAdapter<BmobUser>(context,layout,data){

    override fun convert(holder: AdapterHolder, item: BmobUser, position: Int) {
        KLog.d(item.toString())
            holder.setTextViewText(R.id.tv_user_name,if(item.username==null){""}else{item.username})
    }


}